remove UXTHEME_HAS_LINES, fix menu coloration
authorcinamod <cinamod>
Tue, 20 Jan 2004 21:46:59 +0000 (21:46 +0000)
committercinamod <cinamod>
Tue, 20 Jan 2004 21:46:59 +0000 (21:46 +0000)
modules/engines/ms-windows/ChangeLog.old
modules/engines/ms-windows/wimp_style.c
modules/engines/ms-windows/xp_theme.c
modules/engines/ms-windows/xp_theme.h

index 225a7dcc4cbbe4338337f5bac300bdb28ec898ad..09d9428f9f9c3069a5fbef4b3b9ac79bbeff6f2a 100755 (executable)
@@ -1,3 +1,15 @@
+2004-01-20  Dom Lachowicz <cinamod@hotmail.com>\r
+\r
+       * src/wimp_style.c: Fix disappearing text in Gimp option menus.\r
+       Fix background color on XP menus.\r
+       \r
+2004-01-20  Dom Lachowicz <cinamod@hotmail.com>\r
+\r
+       * src/xp_theme.h\r
+       * src/xp_theme.c\r
+       * src/wimp_style.c: Remove UXTHEME_HAS_LINES stuff. I played around\r
+       with line drawing, and the results were absolutely dreadful.\r
+       \r
 2003-12-30  Dom Lachowicz <cinamod@hotmail.com>\r
 \r
        * src/wimp_style.c\r
index 3e6c1da3e9bc8c96335e97af12a85eeb9f5fb853..0a134f76fa13bbe3f5eb7b7e6edf16c018ad79b9 100755 (executable)
@@ -534,7 +534,9 @@ setup_wimp_rc_style(void)
             "fg[NORMAL] = { %d, %d, %d }\n"
             "bg[NORMAL] = { %d, %d, %d }\n"
             "%s = \"%s\"\n"
-            "}widget_class \"*MenuItem*\" style \"wimp-menu\"\n",
+            "}widget_class \"*MenuItem*\" style \"wimp-menu\"\n"
+            "widget_class \"*GtkMenu\" style \"wimp-menu\"\n"
+            "widget_class \"*GtkMenuShell*\" style \"wimp-menu\"\n",
             fg_prelight.red,
             fg_prelight.green,
             fg_prelight.blue,
@@ -1683,17 +1685,9 @@ draw_hline (GtkStyle             *style,
                        return;
          }
   }
-#if UXTHEME_HAS_LINES
-  if (xp_theme_draw(window, XP_THEME_ELEMENT_HLINE, style, x1, y, x2,
-                   style->ythickness, state_type, area))
-    {
-    }
-  else
-#endif
-    {
-      parent_class->draw_hline (style, window, state_type, area, widget,
-                               detail, x1, x2, y);
-    }
+
+  parent_class->draw_hline (style, window, state_type, area, widget,
+                           detail, x1, x2, y);
 }
 
 static void
@@ -1707,17 +1701,8 @@ draw_vline (GtkStyle             *style,
            gint                 y2,
            gint                 x)
 {
-#if UXTHEME_HAS_LINES
-  if (xp_theme_draw(window, XP_THEME_ELEMENT_VLINE, style, x, y1,
-                   style->xthickness, y2, state_type, area))
-    {
-    }
-  else
-#endif
-    {
-      parent_class->draw_vline (style, window, state_type, area, widget,
-                               detail, y1, y2, x);
-    }
+  parent_class->draw_vline (style, window, state_type, area, widget,
+                           detail, y1, y2, x);
 }
 
 static void
index a8bd4a3463b6580d161a5519e329f547503f5d9a..7dd77d10d7ad0cbc37a22e143bd29fa190338223 100755 (executable)
@@ -97,12 +97,6 @@ static const short element_part_map[]=
   MP_SEPARATOR,
   SP_GRIPPER,
   SP_PANE
-
-#if UXTHEME_HAS_LINES
-  ,
-  GP_LINEHORZ,
-  GP_LINEVERT
-#endif
 };
 
 static HINSTANCE uxtheme_dll = NULL;
@@ -244,11 +238,6 @@ xp_theme_get_handle_by_element (XpThemeElement element)
       klazz = XP_THEME_CLASS_TOOLBAR;
       break;
 
-    case XP_THEME_ELEMENT_HLINE:
-    case XP_THEME_ELEMENT_VLINE:
-      klazz = XP_THEME_CLASS_GLOBALS;
-      break;
-
     case XP_THEME_ELEMENT_MENU_ITEM:
     case XP_THEME_ELEMENT_MENU_SEPARATOR:
       klazz = XP_THEME_CLASS_MENU;
@@ -604,36 +593,6 @@ xp_theme_map_gtk_state (XpThemeElement element, GtkStateType state)
       ret = 1;
       break;
 
-#if UXTHEME_HAS_LINES
-
-    case XP_THEME_ELEMENT_HLINE:
-      switch(state) {
-      case GTK_STATE_ACTIVE:
-       ret = LHS_RAISED;
-       break;
-      case GTK_STATE_INSENSITIVE:
-       ret = LHS_SUNKEN;
-       break;
-      default:
-       ret = LHS_FLAT;
-      }
-      break;
-
-    case XP_THEME_ELEMENT_VLINE:
-      switch(state) {
-      case GTK_STATE_ACTIVE:
-       ret = LVS_RAISED;
-       break;
-      case GTK_STATE_INSENSITIVE:
-       ret = LVS_SUNKEN;
-       break;
-      default:
-       ret = LHS_FLAT;
-      }
-      break;
-
-#endif
-
        case XP_THEME_ELEMENT_MENU_ITEM:
        case XP_THEME_ELEMENT_MENU_SEPARATOR:
                switch(state) {
index f393b56d9bdd5df73230b39f612ca4fa9542a3b5..608843995b9b1d37c7ae0afacf115ede7daaf31f 100755 (executable)
@@ -88,8 +88,6 @@ typedef enum
   XP_THEME_ELEMENT_MENU_SEPARATOR,\r
   XP_THEME_ELEMENT_STATUS_GRIPPER,\r
   XP_THEME_ELEMENT_STATUS_PANE,\r
-  XP_THEME_ELEMENT_HLINE,\r
-  XP_THEME_ELEMENT_VLINE,\r
   XP_THEME_ELEMENT__SIZEOF\r
 } XpThemeElement;\r
 \r